<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
</head>
<body>
<div id="app_dialog" v-cloak class="content-div">   	    
	    <!-- 查询块 start -->
	     <!--<search-component>
                 <search-input v-model="search.regionName" :field="busRegionField.regionName" ></search-input>
                 <search-input v-model="search.regionCode" :field="busRegionField.regionCode" ></search-input>
				 <search-submit :field="pageData.query" @searchsubmit="query"></search-submit>
		 </search-component>	 -->
	    <!-- 查询块 end -->  
	    
	   <!-- 列表table显示 start -->	
	    <table id="table_dialog"></table>
	    <!-- 列表table显示end -->
</div>

<script>
var busRegionField = dataObject.busRegionField;
var statusDialog = '';
var vm_dialog = new Vue({
	el:"#app_dialog",
	data:{
		search:{
		},
		showTool:true
	},
	methods:{
		reload : function(){
			$("#table_dialog").bootstrapTable('refresh');
		},
		query: function(){
			$("#table_dialog").bootstrapTable('refresh');
		}				
	}
});

$(function () {
	  var columns =[
                       {field: 'state', checkbox: true},
                       {field: 'regionName' , title: busRegionField.regionName, sortName:'region_name' , sortable: true,halign: 'center',align: 'center'},
                       {field: 'regionCode' , title: busRegionField.regionCode, sortName:'region_code' , sortable: true,halign: 'center',align: 'center'},
                       {field: 'remark' , title: busRegionField.remark, sortName:'remark' , sortable: true,halign: 'center',align: 'center'},
                       {field: 'createTime' , title: busRegionField.createTime, sortName:'create_time' , sortable: true,halign: 'center',align: 'center'},
                       {field: 'userName' , title: busRegionField.createBy, sortName:'create_by' , sortable: true,halign: 'center',align: 'center'},
                       {field: 'status' , title: busRegionField.status, formatter: 'statusFormatter', sortName:'status' , sortable: true,halign: 'center',align: 'center'},
		         ];
    $table_dialog = new DialogTable("table_dialog", $path+'bus/busregion/list', columns,toolbar,580,'id','id','busregion',singleStatus,'regionName');
   
    statusDialog = groupId ? '' : 2;
    var queryParams = function(params) {            
        return {
        	  page: params.pageNumber,
        	  limit: params.pageSize,
        	  sidx: params.sortName,
              order: params.sortOrder,
              regionName:vm_dialog.search.regionName,
              regionCode:vm_dialog.search.regionCode,
              status:2
            };
    };    
    $table_dialog.setQueryParams(queryParams);
    $table_dialog.init();   
});

</script>
</body>
</html>